package com.css.common.core.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum DmGySysModeEnum {

    SYS_MODE_SYH("1", "私有化模式"),

    SYS_MODE_SAASBZ("2", "SaaS模式（标准 )"),

    SYS_MODE_SAASYL("3", "Saas模式（银联）");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        DmGySysModeEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
